using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using SMWJamecl.Repository.Mapping;
using SMWJamecl.BusinessEntities;


namespace SMWJamecl.Repository
{
    public partial class SMWJameclContext : DbContext
    {
        static SMWJameclContext()
        {
            Database.SetInitializer<SMWJameclContext>(null);
        }

        public SMWJameclContext()
            : base("Name=SMWJameclContext")
        {
        }

        public DbSet<Accesorio> Accesorios { get; set; }
        public DbSet<Alquiler> Alquilers { get; set; }
        public DbSet<Area> Areas { get; set; }
        public DbSet<Cliente> Clientes { get; set; }
        public DbSet<Combustible> Combustibles { get; set; }
        public DbSet<CompaniaSeguro> CompaniaSeguroes { get; set; }
        public DbSet<Componente> Componentes { get; set; }
        public DbSet<DetalleAlquiler> DetalleAlquilers { get; set; }
        public DbSet<Empleado> Empleadoes { get; set; }
        public DbSet<Equipo> Equipoes { get; set; }
        public DbSet<Funcione> Funciones { get; set; }
        public DbSet<Mantenimiento> Mantenimientoes { get; set; }
        public DbSet<Marca> Marcas { get; set; }
        public DbSet<Modelo> Modeloes { get; set; }
        public DbSet<Seguro> Seguroes { get; set; }
        public DbSet<sysdiagram> sysdiagrams { get; set; }
        public DbSet<Taller> Tallers { get; set; }
        public DbSet<TipoAccesorio> TipoAccesorios { get; set; }
        public DbSet<TipoSeguro> TipoSeguroes { get; set; }
        public DbSet<Vehiculo> Vehiculoes { get; set; }
        public DbSet<Version> Versions { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new AccesorioMap());
            modelBuilder.Configurations.Add(new AlquilerMap());
            modelBuilder.Configurations.Add(new AreaMap());
            modelBuilder.Configurations.Add(new ClienteMap());
            modelBuilder.Configurations.Add(new CombustibleMap());
            modelBuilder.Configurations.Add(new CompaniaSeguroMap());
            modelBuilder.Configurations.Add(new ComponenteMap());
            modelBuilder.Configurations.Add(new DetalleAlquilerMap());
            modelBuilder.Configurations.Add(new EmpleadoMap());
            modelBuilder.Configurations.Add(new EquipoMap());
            modelBuilder.Configurations.Add(new FuncioneMap());
            modelBuilder.Configurations.Add(new MantenimientoMap());
            modelBuilder.Configurations.Add(new MarcaMap());
            modelBuilder.Configurations.Add(new ModeloMap());
            modelBuilder.Configurations.Add(new SeguroMap());
            modelBuilder.Configurations.Add(new sysdiagramMap());
            modelBuilder.Configurations.Add(new TallerMap());
            modelBuilder.Configurations.Add(new TipoAccesorioMap());
            modelBuilder.Configurations.Add(new TipoSeguroMap());
            modelBuilder.Configurations.Add(new VehiculoMap());
            modelBuilder.Configurations.Add(new VersionMap());
        }
    }
}
